package com.uwo.house.service.serviceImpl;

import com.uwo.house.beans.SampleFilterEntity;
import com.uwo.house.dao.SampleFilterDao;
import com.uwo.house.service.ISampleFilterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by cynic on 2017/12/5.
 */
@Service
public class SampleFilterServiceService implements ISampleFilterService {

    @Autowired
    SampleFilterDao sampleFilterDao;

    public int addSampleFilter(SampleFilterEntity sampleFilterEntity){
        return sampleFilterDao.addSampleFilter(sampleFilterEntity);
    }

    public int deleteSampleFilter(int id){
        return sampleFilterDao.deleteSampleFilter(id);
    }

    public int modifySampleFilter(SampleFilterEntity sampleFilterEntity){
        return sampleFilterDao.modifySampleFilter(sampleFilterEntity);
    }

    public List<SampleFilterEntity> getSampleFilters(String parentIndex){
        return sampleFilterDao.getSampleFilters(parentIndex);
    }
}
